<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>流程控制-循环语句</h1>

    {% for item in items %}
        <p>{{item}}</p>
    {% endfor %}

    {% for item in items %}
        {{item}}=={{ loop.index }} == {{ loop.index0 }} =={{ loop.first }} == {{ loop.last }}<br>
    {% endfor %}
</body>
</html>